# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Maciej Sitarz <macieks@freesco.pl>

pkgname=firefox-spell-ru
pkgver=0.4.5.1
pkgrel=1
pkgdesc="Russian spellchecker dictionary for Firefox"
arch=(any)
url="https://addons.mozilla.org/firefox/dictionaries/"
license=("GPL")
depends=("firefox")
source=(https://addons.mozilla.org/firefox/downloads/file/1163927/russian_spellchecking_dic_3703-${pkgver}webext.xpi)
noextract=(russian_spellchecking_dic_3703-${pkgver}webext.xpi)
sha512sums=('084e88eaee295a4d82f177513197ebba6529ffdbd6b078de951f0d4ad70d4daf9b18a4fe2a1d90bb3bc3939499ee0a1598e8e66b6cc74c5bbd3bad63a2ad83ef')

package() {
  local _dir="$pkgdir"/usr/lib/firefox/browser/extensions/
  mkdir -p "${_dir}"
  cp "$srcdir"/russian_spellchecking_dic_3703-${pkgver}webext.xpi "${_dir}"/ru@dictionaries.addons.mozilla.org.xpi
}
